
/// address : ""
/// city : ""
/// district : ""
/// id : 0
/// isDefault : ""
/// isSts : ""
/// latitude : 0.0
/// longitude : 0.0
/// name : ""
/// phone : ""
/// phoneCode : 0
/// province : ""

class AddressBean {
  String _check;
  String _address;
  String _city;
  String _district;
  int _id;
  String _isDefault;
  String _isSts;
  double _latitude;
  double _longitude;
  String _name;
  String _phone;
  int _phoneCode;
  String _province;

  String get check => _check;
  String get address => _address;
  String get city => _city;
  String get district => _district;
  int get id => _id;
  String get isDefault => _isDefault;
  String get isSts => _isSts;
  double get latitude => _latitude;
  double get longitude => _longitude;
  String get name => _name;
  String get phone => _phone;
  int get phoneCode => _phoneCode;
  String get province => _province;

  AddressBean.init(){
    _check= '';
    _address = '';
    _city = '';
    _district = '';
    _id = 0;
    _isDefault = '0';
    _isSts = '0';
    _latitude = 0.0;
    _longitude = 0.0;
    _name = '';
    _phone = '';
    _phoneCode = 86;
    _province = '';
  }

  AddressBean({
      String check,
      String address,
      String city,
      String district, 
      int id, 
      String isDefault, 
      String isSts, 
      double latitude, 
      double longitude, 
      String name, 
      String phone, 
      int phoneCode, 
      String province}){
    _check= check;
    _address = address;
    _city = city;
    _district = district;
    _id = id;
    _isDefault = isDefault;
    _isSts = isSts;
    _latitude = latitude;
    _longitude = longitude;
    _name = name;
    _phone = phone;
    _phoneCode = phoneCode;
    _province = province;
}

  AddressBean.fromJson(dynamic json) {
    _check = json["check"];
    _address = json["address"];
    _city = json["city"];
    _district = json["district"];
    _id = json["id"];
    _isDefault = json["isDefault"];
    _isSts = json["isSts"];
    _latitude = json["latitude"];
    _longitude = json["longitude"];
    _name = json["name"];
    _phone = json["phone"];
    _phoneCode = json["phoneCode"];
    _province = json["province"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["check"] = _check;
    map["address"] = _address;
    map["city"] = _city;
    map["district"] = _district;
    map["id"] = _id;
    map["isDefault"] = _isDefault;
    map["isSts"] = _isSts;
    map["latitude"] = _latitude;
    map["longitude"] = _longitude;
    map["name"] = _name;
    map["phone"] = _phone;
    map["phoneCode"] = _phoneCode;
    map["province"] = _province;
    return map;
  }

  set check(String value) {
    _check = value;
  }

  set address(String value) {
    _address = value;
  }

  set city(String value) {
    _city = value;
  }

  set district(String value) {
    _district = value;
  }

  set id(int value) {
    _id = value;
  }

  set isDefault(String value) {
    _isDefault = value;
  }

  set isSts(String value) {
    _isSts = value;
  }

  set latitude(double value) {
    _latitude = value;
  }

  set longitude(double value) {
    _longitude = value;
  }

  set name(String value) {
    _name = value;
  }

  set phone(String value) {
    _phone = value;
  }

  set phoneCode(int value) {
    _phoneCode = value;
  }

  set province(String value) {
    _province = value;
  }

}